package com.ruoyi.teaching.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.teaching.domain.PlatformQQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 王旭
 * @since 2024-06-12
 */
@Mapper
public interface PlatformQQuestionMapper extends BaseMapper<PlatformQQuestion> {

    List<PlatformQQuestion> selectByknowledgeId(Long id);

    List<PlatformQQuestion>  random(@Param("questionType") Integer questionType, @Param("knowledgeIds") List<Integer> knowledgeIds,@Param("questionNumber") Integer questionNumber);
}
